<?php
/**
 * Created by PhpStorm.
 * User: lxd
 * Date: 2018/7/25
 * Time: 11:29
 * Comm:In your code, you must first construct a gateway object with the environment-specific (sandbox or production) access token provided in your PayPal dashboard:
 */

require './vendor/autoload.php';

$gateway    = new Braintree_Gateway( [
    'accessToken'   => 'access_token$sandbox$6p2fby9dzqqvmhyv$8215dfb0dbbaca4a7d00bbd66245b0e2',
    'timeout'       => 30,
] );

$clienToken = $gateway->clientToken()->generate();


//var_dump( $gateway->addOn()->all() );


